if (the text of field "PromptMsg1" contains "password") or (the text of field "PromptMsg1" contains "Password") or (the text of field "PromptMsg1" contains "PASSWORD") then
set fld1 to gHiddenPassword
else
set fld1 to the text of field "PromptFld1"
end if
if (the text of field "PromptMsg2" contains "password") or (the text of field "PromptMsg2" contains "Password") or (the text of field "PromptMsg2" contains "PASSWORD") then
set fld2 to gHiddenPassword
else
set fld2 to the text of field "PromptFld2"
end if
if (the text of field "PromptMsg3" contains "password") or (the text of field "PromptMsg3" contains "Password") or (the text of field "PromptMsg3" contains "PASSWORD") then
set fld3 to gHiddenPassword
else
set fld3 to the text of field "PromptFld3"
end if
set fldList to [#prompt1: fld1, #prompt2: fld2, #prompt3: fld3]